import request from '@/utils/request'

// 查询航路基本信息列表
export function listAirroute(query) {
  return request({
    url: '/baseinfo/airroute/list',
    method: 'get',
    params: query
  })
}

// 查询航路基本信息详细
export function getAirroute(routeid) {
  return request({
    url: '/baseinfo/airroute/' + routeid,
    method: 'get'
  })
}

// 新增航路基本信息
export function addAirroute(data) {
  return request({
    url: '/baseinfo/airroute',
    method: 'post',
    data: data
  })
}

// 修改航路基本信息
export function updateAirroute(data) {
  return request({
    url: '/baseinfo/airroute',
    method: 'put',
    data: data
  })
}

// 删除航路基本信息
export function delAirroute(routeid) {
  return request({
    url: '/baseinfo/airroute/' + routeid,
    method: 'delete'
  })
}
